package com.xds.common.exception;

/**
 * @author : baixu
 * @date : 11:27 2021/11/16
 */
public enum BizCode {
    UNKNOW_EXCEPYION(10000,"系统未知错误"),
    SMS_CODE_EXCEPTION(10002,"验证码获取频率太高，稍后再试"),
    VALID_EXCEPTION(10001,"参数格式校验失败"),
    USER_EXIST_EXCEPTION(15001,"用户已存在"),
    PHONE_EXIST_EXCEPTION(15002,"邮箱号已存在"),
    ACCOUNT_EXIST_EXCEPTION(15003,"账号错误或者密码不正确"),
    NO_STOCK_EXCEPTION(21000,"商品库存不足"),
    PRODUCT_UP_EXCEPTION(11000,"商品上架异常");


    private int code;
    private String meg;
    BizCode(int code,String meg){
       this.code=code;
       this.meg=meg;
    }

    public int getCode() {
        return code;
    }

    public String getMeg() {
        return meg;
    }
}
